using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._LayersandTableViews
{
    /// <summary>
    /// <para>Make Scene Layer</para>
    /// <para>Creates a scene layer from a scene layer package (.slpk) or scene service.</para>
    /// <para>从场景图层包 （.slpk） 或场景服务创建场景图层。</para>
    /// </summary>    
    [DisplayName("Make Scene Layer")]
    public class MakeSceneLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MakeSceneLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The input scene layer package (.slpk) or scene service from which the new scene layer will be created.</para>
        /// <para>将从中创建新场景图层的输入场景图层包 （.slpk） 或场景服务。</para>
        /// </param>
        /// <param name="_out_layer">
        /// <para>Output Layer</para>
        /// <para>The name of the scene layer to be created.</para>
        /// <para>要创建的场景图层的名称。</para>
        /// </param>
        public MakeSceneLayer(object _in_dataset, object _out_layer)
        {
            this._in_dataset = _in_dataset;
            this._out_layer = _out_layer;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Make Scene Layer";

        public override string CallName => "management.MakeSceneLayer";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_dataset, _out_layer];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The input scene layer package (.slpk) or scene service from which the new scene layer will be created.</para>
        /// <para>将从中创建新场景图层的输入场景图层包 （.slpk） 或场景服务。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Output Layer</para>
        /// <para>The name of the scene layer to be created.</para>
        /// <para>要创建的场景图层的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_layer { get; set; }


        public MakeSceneLayer SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}